package com.sin.j2me.wihd.window;

import javax.microedition.lcdui.Alert;
import javax.microedition.lcdui.AlertType;
import javax.microedition.lcdui.Displayable;

import com.sin.j2me.framework.SinFramework;
import com.sin.j2me.wihd.FrameWork;
import com.sin.j2me.wihd.common.Strings;
import com.sin.j2me.wihd.model.User;

public abstract class Window {
	protected User UO = FrameWork.UO;
	protected boolean locked = false;
	protected void setLock(boolean st){locked = st;};
	protected void lock(){locked = true;};
	protected void unlock(){locked = false;};
	protected void setNotice(String notice){
		Alert alert = new Alert(Strings.notice, notice, null, AlertType.INFO);
//		System.out.println("Notice: " + notice);
		SinFramework.setAlert(alert);
	};
	abstract public Displayable getWindow();
}
